package com.hello.tong.feign;

import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.PostMapping;

/**
 * @Author tong-exists
 * @Create 2023/1/1 22:36
 * @Version 1.0
 */
@FeignClient("account-service")
public interface AccountFeignService {

    @PostMapping("/debit/{userId}/{money}")
    public void debit(@PathVariable("userId") String userId, @PathVariable("money") int money);
}
